package cate.common.table.res.furniturecall.sheet;

import cate.common.table.ESheet;
import cate.common.table.res.furniturecall.row.FurnitureCallTypeRow;

import java.util.HashSet;
import java.util.Set;

/** 家具抽奖配置 */
public class FurnitureCallTypeSheet extends ESheet<FurnitureCallTypeRow> {

    @Override
    public String getSheetName() {
        return "盲盒召唤方式";
    }

    public Set<Integer> getAllModes(){
        Set<Integer> modes = new HashSet<>();
        for(FurnitureCallTypeRow row : getList()){
            modes.add(row.mode);
        }
        return modes;
    }
}
